<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="uade.distribuidas.repo.dto.RemitoODVDTO"%>
<%@page import="uade.distribuidas.repo.dto.RemitoCPRDTO"%>
<%@page import="uade.distribuidas.repo.dto.ProveedorDTO"%>
<%@ page import= "java.util.Iterator"%>
<%@ page import= "java.util.List"%>

<html>
<head>
	<title>Lista de Remitos ODV</title>
</head>
<body>

<table cellspacing="3" cellpadding="3" border="1" width="500">
	<tr>
		<td colspan="4"><b>Lista de Remitos ODV</b></td>
	</tr>
	<tr>
		<td><b>Id</b></td>
		<td><b>Nro. Remito</b></td>
		<td><b>Fecha emision</b></td>
		<td><b>Orden Pedido</b></td>
		<td><b>Facturar A Cliente</b></td>
	</tr>
<%
	RemitoODVDTO aux;
	Integer id; 	
	List<RemitoODVDTO> remitos = (List<RemitoODVDTO>)request.getAttribute("remitos");
	for(Iterator<RemitoODVDTO> i = remitos.iterator(); i.hasNext();)
	{
	
		aux = i.next();
		id = aux.getId();
%>
	<tr>
		<td><%=id%></td>
		<td><%=aux.getNumero()%></td>
		<td><%=aux.getEmision()%></td>
		<td><%=aux.getOrden().getNumero()%></td>
		<td> <a href="ControladorVenta?action=facturar&idRemito=<%=id%>">Facturar</a></td>
	</tr>
<% } %>

</table>
</body>
</html>